// 患者列表
export const getpatientData = (data) =>
  uni.http({
    url: 'doctorapp/v1/user_lst',
    method: 'get',
    data,
    requestType: 'app',
  })

// 搜索历史
export const getSearchHistory = (data) =>
  uni.http({
    url: 'doctorapp/v1/searchTermsList',
    method: 'get',
    data,
    requestType: 'app',
  })
// 删除搜索历史
export const delSearchHistory = (data) =>
  uni.http({
    url: 'doctorapp/v1/delSearchTerms',
    method: 'get',
    data,
    requestType: 'app',
  })
// 患者详情
export const getPatienDetails = (data) =>
  uni.http({
    url: 'doctorapp/v1/user_details',
    method: 'get',
    data,
    requestType: 'app',
  })

// 获取当前宝宝信息
export const getBabyDetails = (data) =>
  uni.http({
    url: 'doctorapp/v1/children_detail',
    method: 'get',
    data,
    requestType: 'app',
  })
// 产检
export const getAntenatalData = (data) =>
  uni.http({
    url: 'doctorapp/v1/uir',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取版本号
export const getEditionCode = (data) =>
  uni.http({
    url: 'doctorapp/v1/version',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取客服电话
export const getServiceTelephone = (data) =>
  uni.http({
    url: 'blapp/v1/banner/copyright',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取服务协议
export const getServiceAgreement = (data) =>
  uni.http({
    url: 'blapp/v1/about/doctor_service',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取隐私协议
export const getPrivacyAgreement = (data) =>
  uni.http({
    url: 'blapp/v1/about/doctor_privacythird',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取用户协议
export const getUserAgreement = (data) =>
  uni.http({
    url: 'blapp/v1/about/doctor_user_agreement',
    method: 'get',
    data,
    requestType: 'app',
  })
// 获取用户注销协议
export const getLogoutAgreement = (data) =>
  uni.http({
    url: 'blapp/v1/about/doctor_logout_agreement',
    method: 'get',
    data,
    requestType: 'app',
  })
// 用户注销
export const cancelAccount = (data) =>
  uni.http({
    url: 'doctorapp/v1/cancel',
    method: 'get',
    data,
    requestType: 'app',
  })
// 我的诊室-问诊列表
export const getConsultationApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/consultation',
    method: 'get',
    data,
    requestType: 'app',
  })
// 我的订单列表
export const getOrderListApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/order/list',
    method: 'get',
    data,
    requestType: 'app',
  })
// 我的订单详情
export const getOrderDetailApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/order/detail',
    method: 'get',
    data,
    requestType: 'app',
  })
// 订单搜索历史
export const getOrderSearchHistoryApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/search_list',
    method: 'get',
    data,
    requestType: 'app',
  })
// 删除订单搜索历史
export const orderSearchHistoryDel = (data) =>
  uni.http({
    url: 'doctorapp/v1/search_del',
    method: 'get',
    data,
    requestType: 'app',
  })
// 绑定支付宝
export const bindAlipayApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/wallet/bindAlipay',
    method: 'post',
    data,
    requestType: 'app',
  })
// 获取支付宝信息
export const getBoundInfoApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/wallet/walletInfo',
    method: 'get',
    data,
    requestType: 'app',
  })
// 解绑支付宝
export const unbindAlipayApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/wallet/unbindAlipay',
    method: 'post',
    data,
    requestType: 'app',
  })
// 支付宝提现
export const withdrawalAlipay = (data) =>
  uni.http({
    url: 'doctorapp/v1/wallet/withdrawalAlipay',
    method: 'post',
    data,
    requestType: 'app',
  })
// 获取医生已经开通的业务
export const getDoctorBusTypeApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/doctor_business_type',
    method: 'get',
    data,
    requestType: 'app',
  })
// 生长记录查询
export const getBabyGrowthRecordsByDate = (data) =>
  uni.http({
    url: '/children/grow_log/get_baby_growth_records_by_date',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 成长记录月度记录状态
export const getMonthlyRecordStatus = (data) =>
  uni.http({
    url: '/children/grow_log/get_monthly_record_status',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 喂养记录查询
export const feedDateRecord = (data) =>
  uni.http({
    url: '/children/Feed/feedDateRecord',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 喂养记录月历
export const feedDateList = (data) =>
  uni.http({
    url: '/children/Feed/feedDateList',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 获取用户、孩子信息
export const getUserChildInfoApi = (data) =>
  uni.http({
    url: 'children/vaccine/get_user_child_info',
    method: 'post',
    data,
    requestType: 'baby',
  })
// 孩子的疫苗接种信息
export const getChildInoculationListApi = (data) =>
  uni.http({
    url: 'children/vaccine/get_child_vaccine_lst',
    method: 'post',
    data,
    requestType: 'baby',
  })
// 体重折线图
export const weightFoldLineImg = (data) =>
  uni.http({
    url: '/yc/Weight/weight_fold_line',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 疫苗详情
export const getVaccineDetailApi = (data) =>
  uni.http({
    url: 'children/vaccine/vaccine_detail',
    method: 'post',
    data,
    requestType: 'baby',
  })
// 疫苗操作（接种、删除）
export const vaccineOperationApi = (data) =>
  uni.http({
    url: 'children/vaccine/child_vaccion_operate',
    method: 'post',
    data,
    requestType: 'baby',
  })
